<template>
  <h1>vue3未来写法</h1>
  <div>
    <ul>
      <li>{{ count }}</li>
      <li @click="add">add</li>
    </ul>
  </div>
</template>

<script setup>
// 草案阶段=》完全移除了options api
import { ref } from 'vue'
const count = ref(0)

function add () {
  count.value++
}
</script>

<style lang="scss" scoped>
</style>
